package com.blgroup.oa.service.impl;

import com.blgroup.oa.service.ProcessDefinitionService;
import org.activiti.engine.RepositoryService;
import org.activiti.engine.repository.ProcessDefinition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProcessDefinitionServiceImpl implements ProcessDefinitionService {

    @Autowired
    private RepositoryService repositoryService;

    @Override
    public List<ProcessDefinition> list() {
        return this.repositoryService.createProcessDefinitionQuery().list();
    }


}
